# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: corvolino <corvolino@archlinux.com.br>
# Contributor: Joel Schaerer

pkgname=pdf2svg
pkgver=0.2.3
pkgrel=5
pkgdesc="A pdf to svg converter"
arch=('loong64' 'x86_64')
url="http://www.cityinthesky.co.uk/opensource/pdf2svg/"
license=('GPL')
depends=('poppler-glib' 'glib2' 'cairo')
source=($pkgname-$pkgver.tar.gz::https://github.com/dawbarton/$pkgname/archive/v$pkgver.tar.gz)
sha512sums=('e8f0cc34c112c7d9ae02396ca587f1354462add882501f003b0173e05ebb09c09456dc1736679674fec5a2c04bdc0ef4141266090ba7efeba8b194ee602f5ee2')

build() {
  cd "${srcdir}"/$pkgname-$pkgver

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver

  make DESTDIR="${pkgdir}" install
}
